<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminIndex/index')}">用户列表</a></li>
        <li class=""><a href="{:url('AdminIndex/edit')}?id={$id}"> 编辑用户</a></li>
        <li class="active"><a href="#"> 管理合作平台</a></li>
        <li class=""><a href="{:url('AdminIndex/money')}?id={$id}"> 提现方式</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminIndex/relatePost')}">

        <div class="form-group">

            <foreach name="article" item="vo">
                <div class="col-sm-offset-1 col-sm-1" style="float:left;width: 20%; margin-top: 60px;height: 130px">
                    <div> <img src="{:cmf_get_image_preview_url($vo['thumbnail'])}" width="220px" height="120px">  </div>
                    <div class="checkbox">
                        <label>
                            <input  type="checkbox" name="is_main[]" value="{$vo['id']}" <if condition="in_array($vo.id,$ids)" > checked </if> >{$vo['post_title']}
                        </label>
                    </div>
                </div>

            </foreach>



        </div>


        </br>
        </br>
        </br>
        </br>
        </br>
        </br>



        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="id" value="{$id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="{:url('AdminUserIndex/index')}">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
<script>

</script>
</body>
</html>
